package com.example.aop.controller;

import com.example.aop.aspect.UserAccess;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @RequestMapping("/first")
    public Object first(){
        return "first controller";
    }

    @RequestMapping("/second")
    @UserAccess(desc = "这个message")
    public Object second(){
        return "second controller";
    }

}
